/*
 * ClientEntry.hpp
 *
 *  Created on: 28.03.2011
 *      Author: niea
 */

#ifndef CLIENTENTRY_HPP_
#define CLIENTENTRY_HPP_

#include <string>



#include "../rapidxml-1.13/rapidxml.hpp"
#include "../rapidxml-1.13/rapidxml_print.hpp"

namespace efs
{

class ClientEntry
{
public:
	ClientEntry();
	virtual ~ClientEntry();
	bool operator==(ClientEntry const &entry) const;

	std::string getXMLString() const;
	bool putXMLString(std::string xml_string);
	void print() const;

	/*TODO: architect HACK*/
	void appendToExternalXml(rapidxml::xml_document<> &xml, rapidxml::xml_node<> *root);

	std::string ip;
	int tcp_port;
	int file_port;
};

}

#endif /* CLIENTENTRY_HPP_ */
